package com.yuandian.management.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuandian.api.management.entity.ConfReturnCode;
import com.yuandian.bpm.common.data.datascope.BpmBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 返回码配置表-Mapper接口
 * @author zfsn
 * @date 2023-3-28
 */
@Mapper
public interface ConfReturnCodeMapper extends BpmBaseMapper<ConfReturnCode> {

	/**
	 * 分页查询
	 *
	 * @param confReturnCode 筛选条件
	 * @return 通用返回对象
	 */
	Page<ConfReturnCode> listpage(Page<ConfReturnCode> objectPage, @Param("params") ConfReturnCode confReturnCode);


	/**
	 * 获取返回码信息
	 *
	 * @param confReturnCode 实例对象
	 * @return 通用返回对象
	 */
	List<ConfReturnCode> getCodeDetail(@Param("params") ConfReturnCode confReturnCode);


	/**
	 * 通过主键更新数据
	 *
	 * @param confReturnCode 实例对象
	 * @return 通用返回对象
	 */
    void updateByID(@Param("params") ConfReturnCode confReturnCode);
}